<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    let person = {
        age: 12, name: '李白'
    };
    //以前的写法
    let str1 = "我是" + person.name + "，今年" + person.age;
    console.log(str1);

    //ES6模板语法   ` Tab键上的辣个
    let str2 = `我是${person.name},今年${person.age}`;
    console.log(str2);
</script>
</body>
</html>
